import request from '@/utils/request'

// 查询店铺程序配置列表
export function listConfigProgram(data) {
  return request({
    url: '/market/configProgram/configProgramList',
    method: 'post',
    data: data
  })
}

// 查询店铺程序配置详细
export function getConfigProgram(data) {
  return request({
    url: '/market/configProgram/getConfigProgram',
    method: 'post',
    data: data
  })
}

// 新增店铺程序配置
export function addConfigProgram(data) {
  return request({
    url: '/market/configProgram',
    method: 'post',
    data: data
  })
}

// 保存店铺程序配置
export function saveConfigProgram(data) {
  return request({
    url: '/market/configProgram/save',
    method: 'post',
    data: data
  })
}

// 修改店铺程序配置
export function updateConfigProgram(data) {
  return request({
    url: '/market/configProgram',
    method: 'put',
    data: data
  })
}

// 删除店铺程序配置
export function delConfigProgram(configProgramId) {
  return request({
    url: '/market/configProgram/' + configProgramId,
    method: 'delete'
  })
}

